# License: GPL

$FONT_TITLE = "XFT#Roboto:size=11:bold#Center

Require {
  Templates = "True"
}

Define = "Border" {
  Focused {
    TopLeft = "Image top-left.png"
    Top = "Image top-border.png"
    TopRight = "Image top-right.png"
    Left =  "Image left-border.png"
    Right = "Image right-border.png"
    BottomLeft = "Image bottom-left.png"
    Bottom = "Image bottom-border.png"
    BottomRight = "Image bottom-right.png"
  }
  Unfocused {
    TopLeft = "Image top-left_unfocus.png"
    Top = "Image top-border_unfocus.png"
    TopRight = "Image top-right_unfocus.png"
    Left =  "Image left-border_unfocus.png"
    Right = "Image right-border_unfocus.png"
    BottomLeft = "Image bottom-left_unfocus.png"
    Bottom = "Image bottom-border_unfocus.png"
    BottomRight = "Image bottom-right_unfocus.png"
  }
}

Define = "BaseDecor" {
  Height = "25"

  Pad = "3 0 6 0" 

  Focused = "Image title.png"
  Unfocused = "Image title_unfocus.png"

  Tab {
    Focused = "Image title.png"
    FocusedSelected = "Image title.png"
    Unfocused = "Image title_unfocus.png"
    UnfocusedSelected = "Image title_unfocus.png"
  }
  Separator {
    Focused = "Image tab-separator.png"
    Unfocused = "Image tab-separator_unfocus.png"
  }
  Font {
    Focused = "$FONT_TITLE"
    UnFocused = "$FONT_TITLE"
  }
  FontColor {
    Focused = "#ffffff"
    FocusedSelected = "#ffffff"
    Unfocused = "#303030"
    UnfocusedSelected = "#303030"
  }
  Border {
    @Border
  }
}

Define = "BaseButtons" {
  Buttons {
	Right = "Close" {
		Focused = "Image close_focus.png"
		Hoover = "Image close_focus.png"
		Pressed = "Image close_focus.png"
		Unfocused = "Image close_unfocus.png"
		Button = "1" { Actions = "Close" }
	}
	Right = "Maximize" {
	Focused = "Image max_focus.png"
		Focused = "Image max_focus.png"
		Hoover = "Image max_focus.png"
		Pressed = "Image max_focus.png"
		Unfocused = "Image max_unfocus.png"
		Button = "1" { Actions = "Toggle Maximized 1 1" }
	}

	  }
}

Define = "EmptyDecor" {
  Height = "0"

  Focused = "Empty"
  Unfocused = "Empty"

  Tab {
    Focused = "Empty"
    FocusedSelected = "Empty"
    Unfocused = "Empty"
    UnfocusedSelected = "Empty"
  }

  Separator {
    Focused = "Empty"
    Unfocused = "Empty"
  }

  Font {
    Focused = "Empty"
  }

  FontColor {
    Focused = "Empty"
    FocusedSelected = "Empty"
    Unfocused = "Empty"
    UnfocusedSelected = "Empty"
  }

  Border {
    Focused {
      TopLeft = "Empty"
      Top = "Empty"
      TopRight = "Empty"
      Left =  "Empty"
      Right = "Empty"
      BottomLeft = "Empty"
      Bottom = "Empty"
      BottomRight = "Empty"
    }
    Unfocused {
      TopLeft = "Empty"
      Top = "Empty"
      TopRight = "Empty"
      Left =  "Empty"
      Right = "Empty"
      BottomLeft = "Empty"
      Bottom = "Empty"
      BottomRight = "Empty"
    }
  }
}

Define = "BorderOnly" {
  @EmptyDecor

  Border {
    @Border

    Focused {
      TopRight = "Image top-right-no-buttons.png"
    }
  }
}

Decor = "Default" {
  @BaseDecor
  @BaseButtons
}

Decor = "Menu" {
  @BaseDecor

  Border {
    Focused {
      TopRight = "Image top-right-no-buttons.png"
    }
  }
}

Decor = "Titlebarless" {
  @BorderOnly
}
